'use strict';
module.exports = app => {
    const { STRING, INTEGER, TEXT } = app.Sequelize;
    const Color =  app.model.define(
        'color',
        {
            id: {type: INTEGER, primaryKey: true, autoIncrement: true},
            content: TEXT,
            name: STRING,
            type: STRING,
        },
        {
            tableName: 'color',
            timestamps: true, // 启用时间戳(createdAt, updatedAt)
            updatedAt: 'updated_time', // 不想要 updatedAt
            createdAt: 'create_time', // 想要  createdAt 但是希望名称叫做 created_at
        }
    );
    return Color
};
